// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
// file, You can obtain one at https://mozilla.org/MPL/2.0/.

$font-path: '/media/protocol/fonts';
$image-path: '/media/protocol/img';

@import '~@mozilla-protocol/core/protocol/css/includes/lib';
@import '~@mozilla-protocol/core/protocol/css/components/notification-bar';

.c-page-header {
    padding-top: $spacing-md;
    padding-bottom: $spacing-md;

    .c-page-header-inner {
        align-items: center;
        display: grid;
        grid-template-columns: 1fr;

        img {
            margin: 0 auto;
        }
    }

    @media #{$mq-lg} {
        .c-page-header-inner {
            @include grid-column-gap($spacing-lg);
            display: grid;
            grid-template-columns: 1fr max-content 1fr;
            padding-top: $spacing-md;
            padding-bottom: $spacing-md;

            img {
                margin: unset;
            }
        }
    }
}

.c-page-header-notification {
    .mzp-c-notification-bar {
        @media #{$mq-lg} {
            margin-top: 0;
        }
    }
}

.c-header-image {
    margin-bottom: $spacing-xl;

    img {
        width: 170px;
    }
}

.c-main-tagline {
    @include text-body-lg;
    text-wrap: balance;
}

// visible by default and used as a fallback, will be hidden via JS for ESR browsers
#update-firefox {
    display: block;
}

// not displayed by default, will be visible via JS for ESR browsers
#update-firefox-esr {
    display: none;
}


.mzp-l-columns {
    padding-top: 0;
}

.mzp-c-picto {
    @include text-body-lg;
    text-align: center;

    img {
        width: 300px;
    }

    @media #{$mq-lg} {
        width: 100%;
    }
}

.page-footer {
    display: none;
}

.c-pages-20-21-items {
    .mzp-c-picto {
        img {
            width: 150px;
        }
    }
}
